package com.hotel.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hotel.pojo.Customer;

import java.util.List;
import java.util.Map;

/**
 * @author shkstart
 * @create 2021-06-26 16:28
 */
public interface CustomerService extends IService<Customer> {

    //使用Map集合模糊查询客户
    List<Customer> findList(Map<String, Object> queryMap);

    //模糊搜索总条数
    Integer getTotal(Map<String, Object> queryMap);

    //通过客户名字获取客户
    Customer findByName(String name);

}
